<?php
include ("include.php");
$noidung = new class_noidung();
$langid = $HTTP_GET_VARS["langid"];
$id = $HTTP_GET_VARS["id"];

if ($langid == ""){
	$langid = 0;
}

//xoa title
//$title = "&nbsp;";

//Layout
$layout_file = $arr_layout[$langid][2];
include("html_layout.php");


$sql = "select * from contents where langid='$langid' and contents_parent='$id' order by contents_order";
$str_content = $noidung->list_item($sql, 4, CAT_IMAGES_SMALL_WIDTH );
$str_htm = ereg_replace("@noidung@", "$str_content", $str_htm);

//Header Loading - CSS, Meta, Javascript ...
include("html_header.php");

//Body Loading - Date-Time, ...
include("html_body.php");	

//Menu include
include("html_menu.php");

//Modules include
include("modules.php");

print $str_htm;
?>